package hu.sulirend.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * Used for storing data about start and end time of lessons in the week.
 *
 * @author <a href="mailto: peter.szilagyi@gmail.com">Peter Szilagyi</a> 
 * @since 2008
 */
@Entity
public class Time extends BaseEntity {

	private static final long serialVersionUID = -3143672548010519391L;
	
	private Day day;
	private Hour hour;
	
	@Column(unique=false, nullable=false, updatable=false, insertable=false)
	@Enumerated(EnumType.ORDINAL)
	public Day getDay() {
		return day;
	}
	public void setDay(Day day) {
		this.day = day;
	}
	@Column(unique=false, nullable=false, updatable=false, insertable=false)
	@Enumerated(EnumType.ORDINAL)
	public Hour getHour() {
		return hour;
	}
	public void setHour(Hour hour) {
		this.hour = hour;
	}
	
}
